package com.ys.web.sys.black;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BlackService {
    @Autowired
    private BlackMapper blackMapper;

    public void addPhone(String phone,String ip){
        try{
            blackMapper.addPhone(phone, ip);
        }catch (Exception ignored){
        }
    }

    public int countPhoneByIp(String ip){
        return blackMapper.countPhoneByIp(ip);
    }
}
